package com.springboot.cloud.sysadmin.organization.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.cloud.sysadmin.organization.entity.param.OperationLogQueryParam;
import com.springboot.cloud.sysadmin.organization.entity.po.OperationLog;

import java.util.Set;
/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
public interface IOperationLogService extends IService<OperationLog> {
    /**
     * 新增操作日志
     *
     * @param operationLog 操作日志对象
     */
    boolean add(OperationLog operationLog);

    /**
     * 查询操作日志详细
     *
     * @param id 操作ID
     * @return 操作日志对象
     */
    boolean getOperationLog(String id);

    OperationLog get(String id);

    /**
     * 批量删除系统操作日志
     *
     * @param ids 需要删除的操作日志ID
     * @return 结果
     */
    boolean delete(Set<String> ids);

    /**
     * 查询系统操作日志集合
     *
     * @param operationLogQueryParam 操作日志对象
     * @return 操作日志集合
     */
    IPage<OperationLog> query(Page page, OperationLogQueryParam operationLogQueryParam);

    /**
     * 清空操作日志
     */
//    public void cleanOperationLog();

    boolean update(OperationLog operationLog);
}
